import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 项目列表
  getProjectSmsLists: {
    url: '/api/v1/project/project_sms_admin',
    method: 'get'
  },
  //配置中心--短信配置--人员短信配置详情列表
  getProjectIndex: {
    url: '/api/v1/base/sms_admin_project',
    method: 'get'
  },
  //删除
  delProkectUerSms: {
    url: '/api/v1/base/sms_admin',
    method: 'delete',
    type: 'restful'
  },
  getProjectSmsUser: {
    url: '/admin/sms/getProjectSmsUser',
    method: 'post'
  },
  getCompanyTree: {
    url: '/admin/sms/getCompanyTree',
    method: 'get'
  },
  //已选人员列表
  getPersonList: {
    url: '/api/v1/base/sms_admin',
    method: 'get'
  },
  //保存
  setProjectUserChange: {
    url: '/api/v1/base/sms_admin',
    method: 'post'
  },

  getSmsList: {
    url: '/api/v1/base/sms_config',
    method: 'get'
  },
  //确认事件
  updateUserSmsList: {
    url: '/api/v1/base/sms_admin_config',
    method: 'post'
  }
}

export default buildService(settings)
